/*
 * pokerGame.h
 *
 *  Created on: Nov 8, 2011
 *      Author: administratorforpc
 */

#ifndef POKERGAME_H_
#define POKERGAME_H_

#include <MAUI/Screen.h>
#include <MAUI/Layout.h>

#include <ma.h>

#include "MAHeaders.h"

#include <MAUI/Engine.h>
#include <MAUI/Font.h>
#include <MAUI/Label.h>
#include <MAUI/ListBox.h>
#include <MAUI/Image.h>
#include <MAUI/EditBox.h>
#include <MAUtil/Moblet.h>
#include "Util.h"

#include "User.h"
#include "myPPlayer.h"

class pokerGame : public Screen {

public:
	pokerGame(Screen *previous, User *myUser);
	~pokerGame();
	void keyPressEvent(int keyCode, int nativeCode);
	void pointerPressEvent(MAPoint2d point);
	void pointerReleaseEvent(MAPoint2d point);

private:
	void invertImage(int);
	void setCard(int);

	Screen *previous;
	ListBox *listBox;
	Layout *mainLayout;
	Widget *softKeys;
	Image *myImage[5];
	myPPlayer *myPoker;
	Layout *layout;
	User *myUser;
	Label *label;
	bool checked[5];
	bool turn;
	int score;
};

#endif /* POKERGAME_H_ */
